package cn.janescott.ribboncustom.configuration;

import cn.janescott.ribboncustom.annotation.AvoidScan;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author scott
 * @date 2019/1/3
 */
@Configuration
@AvoidScan
public class EurekaClientRibbonConfiguration {
    @Bean
    public IRule ribbonRule() {
        return new RandomRule();
    }
}
